var express = require('express');
var router = express.Router();

/* GET users listing. */

router.post("/login",(req,resp)=>{
    //console.log("手动登录的请求");
    //获得客户端传递归来的参数
    let username = req.body.username;
    let userPwd = req.body.userPwd;
     //console.log(username,userPwd);
     if(username==='abc' && userPwd==='123abc'){
      resp.end(JSON.stringify({'code':0,'msg':'登录成功'}));
     }else{
      resp.end(JSON.stringify({'code':1,'msg':'登录失败'}));
     }
});


module.exports = router;
